package ltd.rycloud.tms.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import java.sql.Timestamp;

/***
 * @author     ：RYCloud.ltd ZhangLongBiao
 * @date       ：Created in 2019/6/24 13:03
 * @description：
 * @modified By：
 * @version: $
 *山东如翼云计算科技有限公司  张龙彪  15169994844
 ***/
@Entity
public class Pxshenbao {
    private int id;
    private String name;
    private String organization;
    private String pxconent;
    private String address;
    private Timestamp begindate;
    private Timestamp enddate;
    private long userId;
    private String txuser;
    private int budgetId;
    private Double feiyong;
    private String pxfile;
    private Byte audit;
    private Byte ccstatus;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "name")
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Basic
    @Column(name = "organization")
    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    @Basic
    @Column(name = "pxconent")
    public String getPxconent() {
        return pxconent;
    }

    public void setPxconent(String pxconent) {
        this.pxconent = pxconent;
    }

    @Basic
    @Column(name = "address")
    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    @Basic
    @Column(name = "begindate")
    public Timestamp getBegindate() {
        return begindate;
    }

    public void setBegindate(Timestamp begindate) {
        this.begindate = begindate;
    }

    @Basic
    @Column(name = "enddate")
    public Timestamp getEnddate() {
        return enddate;
    }

    public void setEnddate(Timestamp enddate) {
        this.enddate = enddate;
    }

    @Basic
    @Column(name = "user_id")
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    @Basic
    @Column(name = "txuser")
    public String getTxuser() {
        return txuser;
    }

    public void setTxuser(String txuser) {
        this.txuser = txuser;
    }

    @Basic
    @Column(name = "budget_id")
    public int getBudgetId() {
        return budgetId;
    }

    public void setBudgetId(int budgetId) {
        this.budgetId = budgetId;
    }

    @Basic
    @Column(name = "feiyong")
    public Double getFeiyong() {
        return feiyong;
    }

    public void setFeiyong(Double feiyong) {
        this.feiyong = feiyong;
    }

    @Basic
    @Column(name = "pxfile")
    public String getPxfile() {
        return pxfile;
    }

    public void setPxfile(String pxfile) {
        this.pxfile = pxfile;
    }

    @Basic
    @Column(name = "audit")
    public Byte getAudit() {
        return audit;
    }

    public void setAudit(Byte audit) {
        this.audit = audit;
    }

    @Basic
    @Column(name = "ccstatus")
    public Byte getCcstatus() {
        return ccstatus;
    }

    public void setCcstatus(Byte ccstatus) {
        this.ccstatus = ccstatus;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Pxshenbao pxshenbao = (Pxshenbao) o;

        if (id != pxshenbao.id) return false;
        if (userId != pxshenbao.userId) return false;
        if (budgetId != pxshenbao.budgetId) return false;
        if (name != null ? !name.equals(pxshenbao.name) : pxshenbao.name != null) return false;
        if (organization != null ? !organization.equals(pxshenbao.organization) : pxshenbao.organization != null)
            return false;
        if (pxconent != null ? !pxconent.equals(pxshenbao.pxconent) : pxshenbao.pxconent != null) return false;
        if (address != null ? !address.equals(pxshenbao.address) : pxshenbao.address != null) return false;
        if (begindate != null ? !begindate.equals(pxshenbao.begindate) : pxshenbao.begindate != null) return false;
        if (enddate != null ? !enddate.equals(pxshenbao.enddate) : pxshenbao.enddate != null) return false;
        if (txuser != null ? !txuser.equals(pxshenbao.txuser) : pxshenbao.txuser != null) return false;
        if (feiyong != null ? !feiyong.equals(pxshenbao.feiyong) : pxshenbao.feiyong != null) return false;
        if (pxfile != null ? !pxfile.equals(pxshenbao.pxfile) : pxshenbao.pxfile != null) return false;
        if (audit != null ? !audit.equals(pxshenbao.audit) : pxshenbao.audit != null) return false;
        if (ccstatus != null ? !ccstatus.equals(pxshenbao.ccstatus) : pxshenbao.ccstatus != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = id;
        result = 31 * result + (name != null ? name.hashCode() : 0);
        result = 31 * result + (organization != null ? organization.hashCode() : 0);
        result = 31 * result + (pxconent != null ? pxconent.hashCode() : 0);
        result = 31 * result + (address != null ? address.hashCode() : 0);
        result = 31 * result + (begindate != null ? begindate.hashCode() : 0);
        result = 31 * result + (enddate != null ? enddate.hashCode() : 0);
        result = 31 * result + (int) (userId ^ (userId >>> 32));
        result = 31 * result + (txuser != null ? txuser.hashCode() : 0);
        result = 31 * result + budgetId;
        result = 31 * result + (feiyong != null ? feiyong.hashCode() : 0);
        result = 31 * result + (pxfile != null ? pxfile.hashCode() : 0);
        result = 31 * result + (audit != null ? audit.hashCode() : 0);
        result = 31 * result + (ccstatus != null ? ccstatus.hashCode() : 0);
        return result;
    }
}
